<template>
  <div class="box">
    <img alt="" src="../../assets/images/error-images/404.png" />
    <el-button type="primary" class="toHome" @click="goHome">返回首页</el-button>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router'

let $router = useRouter()

const goHome = () => {
  $router.push('/home')
}
</script>

<style scoped lang="scss">
.box {
  width: 100vw;
  height: 100vh;
  background: rgb(112, 97, 154);
  display: flex;
  flex-direction: column;
  align-items: center;

  img {
    width: 600px;
    height: 600px;
  }

  .toHome {
    width: 8rem;
    height: 3rem;
    border-radius: 1rem;
  }
}
</style>